package com.ruoyi.equipment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 【请填写功能名称】对象 equipment_detection_report
 * 
 * @author ruoyi
 * @date 2022-12-14
 */
public class EquipmentDetectionReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long equipmentId;

    /** 校验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "校验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date detectionTime;

    /** 校验证书编号 */
    @Excel(name = "校验证书编号")
    private String detectionCertCode;

    /** 校验单位 */
    @Excel(name = "校验单位")
    private String detectionCompany;

    /** 校验结论 */
    @Excel(name = "校验结论")
    private String detectionResult;
    //文件名
    private String detectionReportFileName;

    //    用于接收上传的报告字段
    private MultipartFile reportFile;
    //检验人
    private String detectionPeople;

    public String getDetectionPeople() {
        return detectionPeople;
    }

    public void setDetectionPeople(String detectionPeople) {
        this.detectionPeople = detectionPeople;
    }


    /** 校验文件上传后的存放路径 */
    @Excel(name = "校验文件上传后的存放路径")
    private String detectionReportFilePath;

    public String getDetectionReportFileName() {
        return detectionReportFileName;
    }

    public void setDetectionReportFileName(String detectionReportFileName) {
        this.detectionReportFileName = detectionReportFileName;
    }



    public MultipartFile getReportFile() {
        return reportFile;
    }

    public void setReportFile(MultipartFile reportFile) {
        this.reportFile = reportFile;
    }



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setDetectionTime(Date detectionTime) 
    {
        this.detectionTime = detectionTime;
    }

    public Date getDetectionTime() 
    {
        return detectionTime;
    }
    public void setDetectionCertCode(String detectionCertCode) 
    {
        this.detectionCertCode = detectionCertCode;
    }

    public String getDetectionCertCode() 
    {
        return detectionCertCode;
    }
    public void setDetectionCompany(String detectionCompany) 
    {
        this.detectionCompany = detectionCompany;
    }

    public String getDetectionCompany() 
    {
        return detectionCompany;
    }
    public void setDetectionResult(String detectionResult) 
    {
        this.detectionResult = detectionResult;
    }

    public String getDetectionResult() 
    {
        return detectionResult;
    }
    public void setDetectionReportFilePath(String detectionReportFilePath) 
    {
        this.detectionReportFilePath = detectionReportFilePath;
    }

    public String getDetectionReportFilePath() 
    {
        return detectionReportFilePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentId", getEquipmentId())
            .append("detectionTime", getDetectionTime())
            .append("detectionCertCode", getDetectionCertCode())
            .append("detectionCompany", getDetectionCompany())
            .append("detectionResult", getDetectionResult())
            .append("detectionReportFilePath", getDetectionReportFilePath())
            .toString();
    }
}
